/**
 * 
 */
package com.testvideo.command;

import com.testvideo.util.LangUtil;

/**
 * @author Administrator
 *
 */
public class ClipInfoChangeEvent {
	private String key ;
	private String value ;
	
	public ClipInfoChangeEvent(String key, String value){
		this.key = key ;
		this.value = value ;
	}
	
	public boolean match(String key){
		return this.key.equals(key) ;
	}

	public String getValue(){
		return value ;
	}
	
	public long getLongValue(){
		return LangUtil.string2Long(this.value) ;
	}
	
	public float getFloatValue(){
		return LangUtil.string2Float(value) ;
	}
	
	public boolean getBoolValue(){
		return "on".equals(value) ;
	}
	
}
